import { configureStore } from '@reduxjs/toolkit'
import mainReducer from './modules/main'
import homeReducer from './modules/home'
import entireReducer from './modules/entire/index'
import detailReducer from './modules/detail'

const store = configureStore({
  reducer: {
    // @reduxjs/toolkit 方式: 推荐方式,未来的趋势
    home: homeReducer,
    // 普通方式: 目前项目中依然使用率非常高
    entire: entireReducer,
    detail: detailReducer,
    main: mainReducer,
  },
})

export default store
